package ualrcdg.shared.responses;

import java.util.Collections;
import java.util.List;

/**
 * Simple implementation of the "Fetch Game Response" object. See CDG XML Specifications: Server Responses: Fetch Game. 
 */
public class FetchGameResponse extends CDGResponse
{
	public static final String responseTag = "fetchGame";

	public static final String dtdName = "fileOperations.dtd";
	
	public final List< String > list;
	
	/**
	 * Primary constructor
	 *
	 * @param requestId the requestId of the FetchGameResponse object to be created
	 * @param list the list of the FetchGameResponse object to be created
	 */
	public FetchGameResponse( String requestId, List< String > list )
	{
		super( requestId );
		this.list = Collections.unmodifiableList( list );
	}

	/*
	 * @see ualrcdg.shared.responses.CDGResponse#toString()
	 */
	@Override
	public String toString( )
	{
		return "FetchGameResponse [<" + super.toString( ) + "> list=" + list + "]";
	}
}
